import { createStore } from 'vuex'
const store = createStore({
    state(){
        return{
            staff: [
                { id: 1001, name:'张三', role: '职员', remark: ''},
                { id: 1002, name:'李四', role: '职员，财务', remark: ''},
                { id: 1003, name:'王五', role: '职员，业务', remark: ''},
                { id: 1004, name:'赵六', role: '业务，经理', remark: ''},
            ],
            staffStyle: [
                { id: 101, fieldName: 'id', label: '工号', width: '100px', seq: 1 },
                { id: 102, fieldName: 'name', label: '姓名', width: '110px', seq: 2 },
                { id: 103, fieldName: 'role', label: '角色', width: '120px', seq: 3 },
                { id: 104, fieldName: 'remark', label: '备注', width: '130px', seq: 4 },
            ],
            tableStyle: [
                { id: 101, fieldName: 'id', label: '主键', width: '100px', seq: 1 },
                { id: 102, fieldName: 'fieldName', label: '字段', width: '110px', seq: 2 },
                { id: 103, fieldName: 'label', label: '显示', width: '120px', seq: 3 },
                { id: 104, fieldName: 'width', label: '宽度', width: '130px', seq: 4 },
                { id: 104, fieldName: 'seq', label: '排序序号', width: '150px', seq: 5 },
            ]
        }
    },
    mutations: {

    },
    actions: {

    }
})

export default store
